package com.itheima.Demo01.demo01;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter(new File("day0628-code\\a.txt"));
        int a = 97;
        String s = "黑马123";
        fw.write(a);
        fw.write(s);
//        fw.write("\r\n".getBytes());
        fw.write("白马123");

        fw.flush();
        fw.write(a);
    }
}
